package cn.glutnn.subject.application.dto;

import cn.glutnn.subject.common.entity.PageInfo;
import cn.glutnn.subject.common.entity.PageResult;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 题目信息dto
 *
 * @author msh
 * @since 2024-11-25 21:24:11
 */

@EqualsAndHashCode(callSuper = true)
@Data
public class SubjectInfoDTO extends PageInfo implements Serializable {
    //主键@TableId
    private Long id;

    //题目名称
    private String subjectName;
    //题目难度
    private Integer subjectDifficult;
    //出题人名
    private String settleName;
    //题目类型 1单选 2多选 3判断 4简答
    private Integer subjectType;
    //题目分数
    private Integer subjectScore;
    //题目解析
    private String subjectParse;

    // 题目分类id
    private List<Integer> categoryIds;

    // 标签id
    private List<Integer> labelIds;

    // 题目答案
    private String subjectAnswer;

    // 标签名称
    private List<String> labelNames;


    // 题目选项集合
    private List<SubjectAnswerDTO> optionList;

    private Long CategoryId;

    private Long labelId;

    private String keyWord;

    /**
     * 创建人昵称
     */
    private String createUser;

    /**
     * 创建人头像
     */
    private String createUserAvatar;

    /**
     * 题目数量
     */
    private Integer subjectCount;

    // 是否被点赞
    private Boolean liked;

    // 点赞数
    private Integer likedCount;

    /**
     * 下一题
     */
    private Long nextSubjectId;

    /**
     * 上一题
     */
    private Long lastSubjectId;



}

